import java.util.ArrayList;


public abstract class HandParser {
	protected String Uri;
	private String Name;
	
	public abstract ArrayList<GameInfo> Reader();
	public abstract GameInfo ReadFile(String filename);
	
	public void setUri(String s)
	{
		Uri = s;
	}
	
	public String getName()
	{
		return this.Name;
	}
	
	public HandParser(String uri, String name) {
		super();
		this.Name=name;
		this.Uri = uri;
	}
	
	protected int MonthtoInt(String s)
	{
		if(s.equals("January") || s.equals("Jan"))
			return 0;
		else if(s.equals("February") || s.equals("Feb"))
			return 1;
		else if(s.equals("March") || s.equals("Mar"))
			return 2;
		else if(s.equals("April") || s.equals("Apr"))
			return 3;
		else if(s.equals("May") || s.equals("May"))
			return 4;
		else if(s.equals("June") || s.equals("Jun"))
			return 5;
		else if(s.equals("July") || s.equals("Jul"))
			return 6;
		else if(s.equals("August") || s.equals("Aug"))
			return 7;
		else if(s.equals("September") || s.equals("Sep"))
			return 8;
		else if(s.equals("October") || s.equals("Oct"))
			return 9;
		else if(s.equals("November") || s.equals("Nov"))
			return 10;
		else
			return 11;
		}
}
